<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>艺巢俱乐部-订单一览</title>
<jsp:include page="header.jsp"></jsp:include>
</head>
<body>
	<jsp:include page="navigation.jsp"></jsp:include>
	<div style="align: center; margin-left: 20px;">
		<table class="table table-striped">
			<tbody>
				<!-- On rows -->
				<tr class="active">
					<td>姓名</td>
					<td>商品名称</td>
					<td>尺寸</td>
					<td>画框</td>
					<td>价格</td>
					<td>支付状态</td>
					<td>送货地址</td>
					<td>付款方式</td>
					<td>是否发货</td>
					<td>订单状态</td>
					<td>托管与否</td>
					<td>下单时间</td>
					<td></td>
				</tr>
				<!-- <tr class="success">...
				</tr>
				<tr class="warning">...
				</tr>
				<tr class="danger">...
				</tr>
				<tr class="info">...
				</tr> -->

				<!-- On cells (`td` or `th`) -->
				<c:forEach var="ord" items="${order}"  varStatus="status">
				<tr>
					<td class="active">${ord.uname }</td>
					<td class="success">${ord.productName }</td>
					<td class="warning">${ord.productSize }</td>
					<td class="danger">${ord.frame }</td>
					<td class="info">${ord.price }</td>
					<td class="active">${ord.isPaid }</td>
					<td class="success">${ord.shippingAddress }</td>
					<td class="warning">${ord.payMethod }</td>
					<td class="danger">${ord.shipFlag }</td>
					<td class="info">${ord.pstatus }</td>
					<td class="danger">${ord.trusteeship }</td>
					<td class="info">${ord.createTime }</td>
					<td class="warning">
					<button type="button" class="btn btn-success" onclick="window.location.href='${pageContext.request.contextPath}/order/getOrder.acc?sid=${ord.sid }'">
							<span class="glyphicon glyphicon-align-center" aria-hidden="true"></span>
							详情</button>
					</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>